package com.tjsinfo.tjsoa.worklog.action;

import java.util.Date;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.tjsinfo.tjsoa.system.vo.User;
import com.tjsinfo.tjsoa.worklog.vo.WorkLogMain;


public class WorkLogHalfYearModleUpAction extends WorkLogMonthModleUp{

	/* (non-Javadoc)
	 * @see com.tjsinfo.tjsoa.worklog.action.WorkLogMonthModleUp#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
	 */
	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		// TODO Auto-generated method stub
		User user = getUser(request);
		Date date = getDate(request);
		Map<Integer, WorkLogMain> map = selectWork("H", user, date);
		return forword(mapping, request, date, map);
	}
}
